package com.zhs.gccs.model;

import java.io.Serializable;
import java.util.List;

public class ProjectAttachment implements Serializable {
    private Integer id;
    private Integer pid;
    private String pids;
    private String name;
    private int type;
    private String ext;
    private String path;
    private Integer fileId;

    private boolean fromZip;

    private Integer convertExtId;//


    private ProjectAttachment parent;
    private List<ProjectAttachment> children;


    ////////////////////////////////
    public static final int type_dir = 1;//文件
    public static final int type_file = 2;//
    public static final int type_zip = 3;
    //////////////////////////////////


    public ProjectAttachment(String name, int type) {
        this.name = name;
        this.type = type;
    }
    //////////////////////////////////


    public ProjectAttachment getParent() {
        return parent;
    }

    public void setParent(ProjectAttachment parent) {
        this.parent = parent;
    }

    public List<ProjectAttachment> getChildren() {
        return children;
    }

    public void setChildren(List<ProjectAttachment> children) {
        this.children = children;
    }

    public boolean isFromZip() {
        return fromZip;
    }

    public void setFromZip(boolean fromZip) {
        this.fromZip = fromZip;
    }

    public Integer getConvertExtId() {
        return convertExtId;
    }

    public void setConvertExtId(Integer convertExtId) {
        this.convertExtId = convertExtId;
    }

    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getPids() {
        return pids;
    }

    public void setPids(String pids) {
        this.pids = pids;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
